package io.renren.modules.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.app.entity.UserEntity;
import io.renren.modules.app.entity.UserExamEntity;
import io.renren.modules.app.entity.UserRegistrationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * ClassName: UserExamDao
 * Package: io.renren.modules.app.dao
 * Description:
 *
 * @Author zzy
 * @Create 2024/4/17 21:39
 * @Version 1.0
 */
@Mapper
public interface UserExamDao extends BaseMapper<UserExamEntity> {
    @Select("SELECT * FROM user_exam_registration WHERE userid = #{userId}  order by time desc limit 1")
    UserExamEntity findByuserId(int userId);

}
